from fastapi import APIRouter


def init_router():
    openapi_router = APIRouter()
    add_router(router=openapi_router)
    return openapi_router


def add_router(router: APIRouter):
    from api.v1.openapi.utils import router as utils_router
    from api.v1.openapi.callback.pay_callback import router as pay_callback_router
    from api.v1.openapi.verification.verification import router as verification_router
    router.include_router(utils_router, prefix="/v1/openapi")
    router.include_router(pay_callback_router, prefix="/v1/openapi")
    router.include_router(verification_router, prefix="/v1/openapi")

